package array;

import java.util.ArrayList;

public class StringExamples {
	public static void main(String[] args) {
		
		final EMp emp = new EMp("harry","sdsd");
		ArrayList lst = emp.getLst();
		lst.add("hi");
		lst.add("bye");
		
		
		System.out.println(emp.getLst());
		
		final EMp emp2 = new EMp("harry","sdsd");
		
//		emp = new EMp("test");
//		emp.setAddres("dagfesfgsr");
//		emp.setName("mahi");
		
		final String str1  = "test";
		
//		str1="sfaef";
		String str ="abcd";
		str = new String("abcd");
		
		
		str= "a"+"b"+"c"+"d"+"e";
		
		StringBuffer sb= new StringBuffer();
		sb.append(" a " );
		sb.trimToSize();
		sb.append("b");
		sb.append("c");
		sb.append("d");
		sb.append("e    ");
		System.out.println(sb.toString());
		sb.trimToSize();
		
		
		
//		StringBuilder sBuilder = new StringBuilder();
//		sBuilder.a
		
		 
	}
}
